package com.hk.userservice.mapper;

import com.hk.model.WxPermission;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import java.util.List;
import java.util.Set;

/**
 * @Author: zhe
 * @Date: 2021/6/8 15:20
 * @Statement:  权限Mapper层接口
 */
public interface WxPermissionMapper extends BaseMapper<WxPermission> {
    
    @Override
    List<WxPermission> findAll(WxPermission wxPermission);

    @Select("select count(1) from wx_permission")
    @Override
    int count(WxPermission wxPermission);

    @Override
    WxPermission findById(Integer id);

    List<WxPermission> findByIds(@Param("permissionIds") Set<Integer> permissionIds);

    @Override
    int save(WxPermission wxPermission);

    @Override
    int update(WxPermission wxPermission);

    @Override
    int delete(Integer id);


}
